//
//  MagzineCollectionViewCell.m
//  TextApplication
//
//  Created by dllo on 16/9/2.
//  Copyright © 2016年 yh. All rights reserved.
//

#import "MagzineCollectionViewCell.h"

@implementation MagzineCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        _picImageView = [[UIImageView alloc] init];
        _typeLabel = [[UILabel alloc] init];
    }
    return self;
}

- (void)layoutSubviews {
    self.picImageView.frame = self.contentView.bounds;
    [self.contentView addSubview:self.picImageView];
    self.typeLabel.frame = CGRectMake(0, self.contentView.bounds.size.height / 2 - 15, self.contentView.bounds.size.width, 30);
    self.typeLabel.textAlignment = 1;
    self.typeLabel.textColor = [UIColor whiteColor];
    [self.contentView addSubview:self.typeLabel];
}


@end
